//
//  QCustomerAndDateCell.m
//  QoilPublic
//
//  Created by 杨凯 on 2017/3/2.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "QCustomerAndDateCell.h"
@interface QCustomerAndDateCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *priceLab;

@end
@implementation QCustomerAndDateCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(QCuOrderModel *)model{
    _model = model;
    
    if ([_model.yangkai isEqualToString:@"yangkai"]) {
        _titleLab.text = [NSString stringWithFormat:@"%@|加油金额",_model.orderType];
    }else{
        _titleLab.text = [NSString stringWithFormat:@"%@ %@|%@",_model.name,_model.tell,_model.orderType];
    }
    _priceLab.text = [NSString stringWithFormat:@"￥%@",_model.orderPrice];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
